﻿<Page
    x:Class="Prometheus.Binding.W8Test.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Prometheus.Binding.W8Test"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:binding="using:Prometheus.Binding"
    xmlns:readOnly="using:Prometheus.Binding.ReadOnly"
    xmlns:validation="using:Prometheus.Binding.Validation"
    xmlns:simple="using:Prometheus.Binding.Validation.Rules.Simple"
    mc:Ignorable="d">
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" HorizontalAlignment="Center" VerticalAlignment="Center">

        <binding:proForm>
            <binding:proForm.Content>
        <local:TestErrorBorder>
            <local:TestErrorBorder.Content>
            <TextBox Width="150">
                <binding:proForm.proBinding>
                    <validation:proValidationBinding Path="Something">
                        <validation:proValidationBinding.ValidationRules>
                            <simple:proNotEmptyStringRule ErrorText="маза фака"/>
                        </validation:proValidationBinding.ValidationRules>
                        </validation:proValidationBinding>
                </binding:proForm.proBinding>
            </TextBox>
        </local:TestErrorBorder.Content></local:TestErrorBorder>
        </binding:proForm.Content></binding:proForm>
    </Grid>
</Page>
